#根据用用户输入的月份，输出非闰年月份对应的天数
month = int(input('请输入月份:\n'))
days = 28
if month<=7:
    if month % 2 == 1:
        days=days+3
    else:
        if month // 2 > 1:
            days=days+2
else:
    if month%2==0:
        days=days+3
    else:
        days=days+2
print('{}月共有{}天'.format(month,days)) 